package com.front.managementfront.region.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author yck
 * @since 2021-05-12
 */
public class HktsRegion extends Model<HktsRegion> {

private static final long serialVersionUID=1L;

                            private String id;
        private String createBy;
        private LocalDateTime createTime;
        private Integer delFlag;
        private String updateBy;
        private LocalDateTime updateTime;
        private Integer parentCode;
        private Integer regionCode;
        private String regionName;
        private String regionType;
        private String regionAlias;
        @TableField(exist = false)
        private List<HktsRegion>  nextRegions=new ArrayList<HktsRegion>();

        public List<HktsRegion> getNextRegions() {
            return nextRegions;
        }

        public void setNextRegions(List<HktsRegion> nextRegions) {
            this.nextRegions = nextRegions;
        }

    public String getId(){
            return id;
            }

        public void setId(String id) {
            this.id = id;
            }

    public String getCreateBy(){
            return createBy;
            }

        public void setCreateBy(String createBy) {
            this.createBy = createBy;
            }

    public LocalDateTime getCreateTime(){
            return createTime;
            }

        public void setCreateTime(LocalDateTime createTime) {
            this.createTime = createTime;
            }

    public Integer getDelFlag(){
            return delFlag;
            }

        public void setDelFlag(Integer delFlag) {
            this.delFlag = delFlag;
            }

    public String getUpdateBy(){
            return updateBy;
            }

        public void setUpdateBy(String updateBy) {
            this.updateBy = updateBy;
            }

    public LocalDateTime getUpdateTime(){
            return updateTime;
            }

        public void setUpdateTime(LocalDateTime updateTime) {
            this.updateTime = updateTime;
            }

    public Integer getParentCode(){
            return parentCode;
            }

        public void setParentCode(Integer parentCode) {
            this.parentCode = parentCode;
            }

    public Integer getRegionCode(){
            return regionCode;
            }

        public void setRegionCode(Integer regionCode) {
            this.regionCode = regionCode;
            }

    public String getRegionName(){
            return regionName;
            }

        public void setRegionName(String regionName) {
            this.regionName = regionName;
            }

    public String getRegionType(){
            return regionType;
            }

        public void setRegionType(String regionType) {
            this.regionType = regionType;
            }

    public String getRegionAlias(){
            return regionAlias;
            }

        public void setRegionAlias(String regionAlias) {
            this.regionAlias = regionAlias;
            }

    public static final String ID ="id";

    public static final String CREATE_BY ="create_by";

    public static final String CREATE_TIME ="create_time";

    public static final String DEL_FLAG ="del_flag";

    public static final String UPDATE_BY ="update_by";

    public static final String UPDATE_TIME ="update_time";

    public static final String PARENT_CODE ="parent_code";

    public static final String REGION_CODE ="region_code";

    public static final String REGION_NAME ="region_name";

    public static final String REGION_TYPE ="region_type";

    public static final String REGION_ALIAS ="region_alias";

@Override
protected Serializable pkVal(){
            return this.id;
        }

@Override
public String toString() {
        return "HktsRegion{" +
                ", id=" + id +
                ", createBy=" + createBy +
                ", createTime=" + createTime +
                ", delFlag=" + delFlag +
                ", updateBy=" + updateBy +
                ", updateTime=" + updateTime +
                ", parentCode=" + parentCode +
                ", regionCode=" + regionCode +
                ", regionName=" + regionName +
                ", regionType=" + regionType +
                ", regionAlias=" + regionAlias +
        "}";
        }
        }
